<template> 
    <div class="goods-list">
        <div class="goods-item">
            <img src="http://cdn.cnbj1.fds.api.mi-img.com/mi-mall/53736880b37ff5e9e469b2e1e4a97c16.jpeg">
            <h1>Redmi K30 至尊纪念版</h1>
            <div class="info">
                <p class="price">
                    <span class="now">￥1999</span>
                    <span class="old">￥2199</span>
                </p>
                <p class="sell">
                    <span>热卖中</span>
                    <span>剩50</span>
                </p>
            </div>
        </div>
        <div class="goods-item">
            <img src="http://cdn.cnbj1.fds.api.mi-img.com/mi-mall/53736880b37ff5e9e469b2e1e4a97c16.jpeg">
            <h1>Redmi K30 至尊纪念版</h1>
            <div class="info">
                <p class="price">
                    <span class="now">￥1999</span>
                    <span class="old">￥2199</span>
                </p>
                <p class="sell">
                    <span>热卖中</span>
                    <span>剩50</span>
                </p>
            </div>
        </div>
        <div class="goods-item">
            <img src="http://cdn.cnbj1.fds.api.mi-img.com/mi-mall/53736880b37ff5e9e469b2e1e4a97c16.jpeg">
            <h1>Redmi K30 至尊纪念版</h1>
            <div class="info">
                <p class="price">
                    <span class="now">￥1999</span>
                    <span class="old">￥2199</span>
                </p>
                <p class="sell">
                    <span>热卖中</span>
                    <span>剩50</span>
                </p>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    name: 'goodslist',
    data(){
        return {
            goodsList: new Array(8),
        };
    },
    mounted(){

    },
    methods:{

    }
}
</script>

<style lang="less">
.goods-list{
    display: flex;
    padding: 0px 8px 50px 8px;
    flex-wrap: wrap;
    justify-content: space-between;
    .goods-item{
        width: 49%;
        margin: 3px 0;
        border: 1px solid #ccc;
        box-shadow: 0 0 9px #ccc;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 285px;
        img{
            width: 100%;
        }
        h1{
            font-size: 16px;
        }
        .info{
            background-color: #eee;
            p{
                margin: 0;
                padding: 5px;
            }
            .price{
                .now{
                    color: red;
                    font-weight: bold;
                    font-size: 16px;
                }
                .old{
                    text-decoration: line-through;
                    font-size: 12px;
                    margin-left: 10px;
                } 
            }
            .sell{
                display: flex;
                justify-content: space-between;
            }
        }
    }
}
</style>>